// index.js
const appInstance = getApp();

Page({

  /**
   * 页面的初始数据
   */
  data: {
    location: appInstance.globalData.defaultCity,
    county: appInstance.globalData.defaultCounty,
  },
  onLoad: function(options) {
    //加定位
    // this.getLocation();
  },
  onShow: function() {
    this.setData({
      location: appInstance.globalData.defaultCity,
      county: appInstance.globalData.defaultCounty
    })
  }
})